package com.shihan.sqlSession;

import com.shihan.pojo.Configuration;

public class DefaultSQLSessionFactory implements SQLSessionFactory {

    private Configuration configuration;

    public DefaultSQLSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SQLSession openSession() {
        DefaultSQLSession defaultSQLSession = new DefaultSQLSession(configuration);
        return defaultSQLSession;
    }
}
